An implementation of the FIFO, LRU, MRU and Optimal page replacement algorithms