trie-tree with suffix search