Replaced plain allocator with a simple slab allocator.