Almost finished SJF non preemtive algorithm