sleep troubles might affect memory