weighted quick union alg