New Huffman coding implementation (C++)