SMS: Stochastic approximation nonlinear regression