leven with only a_b duplicates