move in matrix
LCS