ADD: balanced trees to make quick union faster