Added hleper function to find elements in set.