removed heapsort