heapsort: fixed indeces,quicksort3 done