Updates an item at index with value in the segment tree on Mut.
index
value
Mut
The reference to a segment tree.
The inserting operation.
Updates an item at
indexwithvaluein the segment tree onMut.