Edit Heap Sort