Realization of Huffman compression with Hamming error correction code