UnionFind API added