add Kruskal's algorithm
add Kruskal's algorithm