switched determinant calculation to LU