start of huffman coding