simple quicksort (not in place)