add binary indexed tree