heapsort done OK