Simulation of Memory management system