added mean_var update and unittests
Dissected the electrical network problem, implemented general and Newton solver.
Changed compare_stochastic_methods to work with new interface.