Revise heapsort.