update longest_incr_seq