UPDATE : This is an old project, originally an attempt to implement huffman tree encoding. The Huffman code generation is technically working, but nonetheless sloppy. I leave it here for posterity, but I discourage the use/study of this code. Drop me an e-mail if you're interested by a reimplementation