#25 Kruskal Algorithm Implementation.
Improvement for Kruskal.