Arithmetic Coding with Adaptive Model and SemiAdaptive Model