Kruskal’s Algorithm for Minimum Cost Spanning Tree