Added get_intervals_overlap handy function.