A new distributed and decentralized stochastic optimization algorithm with applications in Big Data analytics