First implementation of slab allocator. Needs more testing and polishing