page replacement algorithms in c