Lack of sleep affects impair memory formation: Study