Merge pull request #4 from bchretien/master

Fix distance-to-sphere test
Add optimization logger to distance-to-sphere test.