update UnionFind classes
reorganize folders