scan function
cabac initialization
some work