Finally implemented the paging algorigthm
Yippie yay