[algorithms] all unionfinds completed