Merge pull request #5 from bchretien/master

Add optimization logger to distance-to-sphere test.
Fix comparison errors signed/unsigned.