Implemented suffix trie.