Wrote Union-Find.
Merge pull request #9 from polaris8920/union-find

Wrote Union-Find.