http://hi.baidu.com/vfxupdpaipbcpuq/item/13cbd3258c29e20d72863edf http://www.cnblogs.com/cyjb/p/UnionFindSets.html