Huffman compression algorithm