assignment for week 4 - compression - Huffman coding