Simple Segment-tree with range query and update operations