Heap sort 4lab_dm