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