Create binary indexed tree