malloc implementaton based on slab