Determinant of matrix - implemented Laplace expansion