Update SegmentTree.js