Support memory scheduling

Supports memory scheduling. Tests with FIFO and second chance scheduling
algorithms. 3 new command line parameters added