fix a stupid bug in heapsort