Memory allocator implemented and tested