Initialized quicksort and outlined algorithm