• This is pretty clever and will work even on overlapping intervals pretty fast - at least until someone inserts interval (minint, maxint) 🙂