Generations of school students have gone to bed the night before a maths exam or a vocabulary test with their algebra book or vocabulary notes tucked under their pillow in the hope that the knowledge would somehow be magically transferred into their brains while they slept. That they were not completely taken in by a superstitious belief has now been …