A (yet unoptimized) huffman encoder and decoder.