Beyond Propagation of Chaos: A Stochastic Algorithm for Mean Field Optimization