fix memory leak
optimized residual coding
continue cleaning
cabac optimization