Change Feature type to Double
Fix bug in OrthogonalCostFunction.secondDerivative