provide union-set
sol of union-set-tree