Merge pull request #7 from bchretien/master

Cached Jacobian
Fix finite-difference-gradient for sparse matrices.
Fix pkg-config file.
Synchronize.
Fix finite difference gradient test.
Implement finite difference Jacobian.