c++ program to search for words in a Trie Data Structure