Compares a pair of non-overlapping increasing sequences