Create huffman tree, encode, decode text with characters