Added perl scripts, modified files

freelist.c contains all the buffer replacement algorithms clubbed
together