added direct search option for Trie