trie in c++ for storing large dictionaries