Created a double to get determinant

Created double det() to return the determinant of the matrix