Disjoint Set Union (Union-Find)Union & find operations, path compression, union by rank, and cycle detection