Finish HeapSort