Implemented SegmentTree structure, added some unit tests for it
Used SegmentTree structure to solve 284D problem