hevc: cabac: simplify and optimize