Adding trie functionality for words with no common letters at root