Stochastic Approximation On Riemannian Manifolds And The Space Of Measures