On Stochastic Approximation, Stochastic Algebraic Topology and Optimization in High Dimensions