Generate Grid-search matrix

getSearchGrid(lengthby, nparam)

Arguments

lengthby

search length

nparam

number of paramters/reference datasets