Update HeapSort