search word in a matrix, backtracking, accepted