More memory manager implementation (WIP)