rewrite Heapsort