Finish Heap Sort.