Determinant calculation for matrix 6x6