solve a system of linear equations from an LU decomposition