example of disjoint set - Search