fixed all heapsort errors