Fixed heapsort