Segment Tree - Algorithms for Competitive Programming