update for poj1679,the second min spanning tree,Prim
add template for the second min spanning tree , Prim