Add SegmentTree which can perform update in O(log n).
Correct misnaming.