Consider number of rows and columns in search strategy