checkGH function

Check Gradient and Hessian