Implement Huffman Coding.