Basic Algorithm: QuickSort, HeapSort