now save residuals and newton's current x-vectors into newton_data