Simplify "Search a 2D matrix"