a terrible implementation of the sjf process scheduling algorithm