Memory Allocator and Manager in C/C++