implement quick find and quick union