an implementation of a simple memory manager for c/c++ use