SearchSortedMatrix