add 2524, simple disjoint set