Stochastic Quasigradient Methods and their Implementation