Added implementation for Kruskal algorithm to find minimum spanning tree