made NextByte() public for huffman. could be a bad idea