Based on:
- https://github.com/tylerkahn/intervaltree-python
- https://github.com/misshie/interval-tree
Your range objects should implement IntervalTree\RangeInterface. There are numeric and DateTime-based implementations included.