add intersection and union operation to set