wrote _addRange to RangeSet prototype