Renaming UnionFind for specific implementation.