Implemented slab allocator (but must need refactoring...).