Primitive Huffman coding example for compressing text