minimize a penalty function by performing a bounded search on lambda
lambda = minimizeOnLambdaBounded(mSpline,functionOfSpline,minLambda,maxLambda)