Add 3.LongestSequenceInMatrix