Determine the LU factorization of a square matrix.