exercise on quicksort algorithms in ruby.