add quick union and weightedqu