Update longestSequence2DArray