Implemented a mostly working SJF algorithm on the ready queue