fix code about heapsort