Added generation of huffman codes