first quick implementation of sjf