Modifications in the memor blocks, and added new memory pool class