Basic layout for trie insert and search