Huffman encoding working. TODO serialization.