search a 2D matrix

search a 2D matrix