Create searchMatrix