Initial Version for the Kruskal MST algorithm