final heapsort now OK