Implicit Segment Trees