Huffman encode, pretty much finished product