approx_grad function

Finite-difference Gradient Computer