whitespace
more efficient union find
reflect new implementation details in identifier names
change UnionFind API: constructor doesn't care about size