beginning heapsort