Implemented SJF and supporting infrastructure