Heap and QuickSort