Update O(log N)-updating SegmentTree.