Adds Heapsort.