Union-Find Python implementation of a Union-Find data structure with union-by-rank and path-compression heuristics. Supported Operation: Queries: find(element) getElements() Updates: union(set, set)