Add weighted quick union.