add chapter bit operation

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
add binary indexed tree

Signed-off-by: Wei Jin <wjin.cn@gmail.com>