add UnionFind structure
Merge pull request #1 from escherba/dev

add UnionFind structure