final corrections to heapsort algo OK