Renamed query_from_range_index to query_from_root and updated documentation
Added test cases for SegmentTree.update()