Given a square matrix mat of size N x N. The task is to find the determinant of this matrix.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integer N denoting the size of the matrix. The next line contains the elements of the matrix in row-wise form.
Print the determinant of the matrix.
1 <= T <= 100
1 <= N <= 100
-100 <= mat[i][j] <= 100