Shortest-Job First Algorithm