Update segment_tree.cpp