poj1308. Union-Find-Set