TLE
fix calling UnionFindTree method