Merge pull request #9 from bchretien/master

Refactoring of finite difference gradient computation
Merge pull request #10 from bchretien/master

Bug fix
Fix multiple definition of template specialization.