Updated Chen and Kanad's amazing work on the memory allocator :')