simple quicksort with partition function (while loops and swaps), and quicksort which call on left and right