condensed quicksort somewhat