levenberg marquardt with non-diagonal correlation matrix