Generic Segment Tree Updated