Move memory related files into memory dir.
Implements some functions in List ADT.