Tarjan and Union-Set