Algebraic Sigmoids in C++11 with Python wrapper.