algo4: array: Detect intersected intervals
    -- revisited insert_interval and merge_intervals