Segment tree: assignment on range & get single