Stochastic Approximate Bayesian Inference Algorithm