implement huffman encoding