add data stucture of union find