LU decomposition altered