Encode or decode a file using Huffman or Adaptive Huffman encoding.