Implemented comparators
Implemented PairSegmentTree
Implemented MinMaxSegmentTree