rewrite segment_tree.c and add segment_tree.h