Update quick-union.rb

Use a range instead of a loop.
Merge pull request #1 from RKushnir/patch-1

Update quick-union.rb