find the longest ascending sequence length