Merge clusters by ids as well as by addresses.