Added a function which calculates the determinant of a square matrix to the DenseMatrix class (+test on 2x2 and 3x3 matrices).