Anagram bipartitely