huffman lib and tests