Revisit MST algorithms and UnionFind