A study has shown that taking a nap will improve your memory.