union-find bugs