Add calculate union and intersect of the words result