Added sort functions for scheduling

Added sort functions to sort SJF and SRTF, will only need one.