split the Trie class in Trie and TrieNode for better clarity
modified the description of the thread-related problem