Trie insert and search operations