Given a matrix M, the task is to check if the sum of i-th row is equal to the sum of i-th column or not.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. First line of each test case contains two integers R and C and the second line contains R*C space separated matrix elements.
Output: For each test case, if sums are equal for one or more rows and column, print "Yes" else print "No".