search 2D matrix