Increase performance by copying sets

When we have too many iterations, this is getting slow due to google
guava lib usage on unions
Increase performance by using standard hashset