Add, document and test hard_sigmoid.
Fix doc indentation. They are part of their section, not at the global scope.
Merge pull request #1392 from nouiz/sigmoid

Add hard_sigmoid, faster, but more approx.