Beautiful quick sort algorithm in Ruby