Fix bug related to merge intervals

Compare i1_start <= i2_end & i2 start >= i1_end >= i2 start