Add the standard code of Kruskal + Union Check Set.