Quick Sort with Ruby, tested with rspec