scala assn encode Huffman A