changed memory.cpp to memory.c, started coding the memory.