Huffman dictionary building actually working this time