Implementation of demand paging in OS with page replacement policies like SC and NRU