Working quicksort