Stochastic approximation procedure with some application in credibility theory