Kruskals algorithm | minimum spanning tree | greedy approch