add solution for search a 2D matrix.