Created Unionfind.