Now working on memory
Added CMake support