set operations algo implemented!