Merged SJF and SRTF simulations into one method