Fixed the Heapsort.