The first line contains an integer $T (1<= T <=5)$ representing the number of test cases.
For each test case , there are two integers $n,m(1<=n<=100000,1<=m<=100000)$ in the first line.
Then one line contains n integers $fx[i] (0<=fx[i]<=100000)$
Each of the next m lines contain four integers $x_0,y_0,x_1,y_1(1<=x_0<=x_1<=n,0<=y_0<=y_1<=100000)$ which means matrix's lower-leftmost cell is $(x0,y0)$ and upper-rightest cell is $(x1,y1)$.