perform a search on lambda, returning penalty function values
[lambdaArray,errorValues] = searchOnLambda(mSpline,functionOfSpline)