matrix determinant, linear system