Implement anagram collector