add encoder cabac support
Merge pull request #1457 from ruil2/enc_cabac

add encoder cabac support