Create a function that returns the determinant of a given square matrix.
determinant([[3]]) ➞ 3
determinant([[1, 0], [5, 4]]) ➞ 4
determinant([[3, 0], [2, 2]]) ➞ 6
determinant([[4, 8, 6], [2, 4, 3], [6, 2, 1]]) ➞ 0
All inputs are square integer matrices.