update for poj2349,Kruskal