c++ simple memory allocator