Fix for issue #5

When max_norm was close to 0, num_steps could become negative leading to bad results.
Merge pull request #7 from tvercaut/small-svf-exp-bug-5

Fix for issue #5