Implements a minimal Huffman encoder/decoder in ruby