search a 2d matrix, divide and conquer