algo2: testing disjoint sets' implementation