Implemented faster allocation mechanism for memory_pool