solution: search a 2D matrix 1