adding huffman codes