Created a block allocator class