Converted find_time_slots_from_cuts to handle tr by looking at both start_times and end_times