Implementing UnionFind.find (without path-compression); adding first tests for UnionFind