Students sometimes pull an all-nighter to prepare for an exam. However, research has shown that sleep deprivation is bad for your memory. Now, neuroscientists have discovered that what you learn while being sleep deprived is not necessarily lost, it is just d…