new function searchMatrix, version to 1.1.3