Splitting tree/trie stuff from Huffman module