Working on the Segment Tree implementation