anagrams and balanced binary tree.