Simulation of page replacement