poj 1470. LCA. Union-Find-Set.
merge from master