tweak ruby quicksort a bit