Add WeightedQuickUnionUF and revert QuickUnionUF