Update Heap sort