topo sort, anagrams, strstr