Modified variable name
Added test cases for SegmentTree construction