Update segment-tree.cpp