add UnionFind quick union method