Virtual memory simulator based on Demand Paging