check for double points and unequal-sized groups