fix DanH’s comments on UnionFind