-implementation of union-set