Added quicksort and quicksort_inplace