Segment Tree & main.cpp