renaming memory manager such that it can also work with pointers