Modify bernoulli function definition
simplify optimize by using State monad
Finish conversion to State-based SPSA
Add an assertion of failure to configure SPSA
Add example
v0.2.0.0