The dream of computing the way the human brain does comes a step closer thanks to nanomaterials