adding quick union and weighted quick union