Tried the pagefault section.

http://www.thegeekstuff.com/2012/02/linux-memory-management/
Done a alittle to take phys page. Need to check if is dirty page before
replacing. If it is a dirty page, copy it to swap.
write out the page if modified'
Take phys page done!
fifo page replace should be done(INT_MAX?!?!).I recon that you just
replace the next page in line and continue like that.
Fixed build error.(minor=)