Inner implementation of quick union.
Merge pull request #4 from JoeTheDentist/Union-Find

Inner implementation of quick union.