Main part of Kruskal's algorithm pseudoce initialized (only used functions 'make_set', 'find_set', 'union' are still missing)