heapsort changes