Stochastic Algorithms for Chemical Kinetics