ix/quicksort in ruby