evaluation of the OT gradient and hessian by finite differences