ocd fix
esthetic changes to the trie
fix big-O typo in trie
add ternary search tree