I have the following working code that sets 1 to "new_col" at the locations pointed by intervals dictated by starts and ends.
starts
ends