s18-06 Segment trees