segmenttree.cpp (4) dynamicallocation