optimize the quicksort arith

And fix the quickSort2 bug