solve protomeme clustering problem