update HeapSort