Searching and filtering

find_closest lo hi t returns the interval in t which is at
minimal distance of the interval [lo;hi]. The resulting
tuple contains from left to right, left-end of the interval,
right-end of the interval, value associated to the interval and
distance to the interval given in argument. Overlapping intervals
are at distance 0 of each other.