Slightly improved `Algorithms::UnionFind::QuickUnion` with the addition of simple path compression.