Solve the searching 2d matrix problem using binary search.