add trie
add tries and bktree