suffix trie construction