quicksort, insertion sort and max-subarray