input: [Name] residualVector [Type] double* [Description] 
output: This parameter provides the means for a user to capture the residual at each iteration. The specified array must be at least maxIter in length. This parameter may be NULL if these quantities are not desired.