hdu1213, a union-find problem, modify the quick-union issue