merged trie and linguistics, overriden len for trie, added another constructor for trie