Huffman coding, To debug