Persistent Segment Tree