Create segmenttree.cpp