Kruskal algorithm example pdf s