Determinant

Finds the determinant of the matrix.

If the matrix is not square (number of rows not equal to the number of columns) the determinant cannot be found and the previous out value is kept and an error message is written once.