Huffman changed to accept any size of buffer