Small cleanup on heapsort