Added binary indexed tree