adding memory.lhs as new chapter
adding memory.lhs as new chapter