Add logic for shortestJobFirst and RoundRobin.