An implementation of quick sort in Ruby