Added Gradient method and tests.

Gradient computes finite differences of vector-valued function using finite difference
I would use a defer close(quit) here.