Fixed bug in tuple_min_heap; cleaned up prims, job_scheduling