mst and disjoint set