add RangeQueue class