Generating binary codes from huffman tree finished