By using struct and a helper function my sjf() works now YAY!
By using struct and a helper function my sjf() works now YAY!