RangeMap implemented and tested