Update SegmentTree.cpp