modified arupTrie.cpp