Make DisjointSets immutable