moved finding shortest job to getNextJob()