adding Weighted Quick Union