Fix optimization bugslsls Hessian , FO calculation miss, distanceMatvect access index miss.