Update segment-tree.js