SJF scheduling implementation