Implement DisjointSets structure in C++ using the attached cpp skeleton file. Use it to solve problem 10608 at UVA online judge.