Adding the ternary search trie