prefix trie and their forest