refine quicksort with recursion edition and no recursion edition