Updates the n-th element of this tree in O(log n).
void operator []=(int index, int value) => update(index, value - this[index]);