Playground - UF: Weighted quick-union by rank with path compression by halving