Fixed heapsort!