Implementing a memory allocator/deallocator in C.