add 1-based binary indexed tree