Nice union-find.