Added RangeSet functionality and unit tests