Matlab实现算术编码(arithmeticcoding),解决underflow问题。输入为一个字符串,输出为entropy,range,bits,ave_bits,codeword.