switched to WeightedQuickUnionUF realization