Compressor based on Huffman algorithm