Stochastic optimization algorithms for adaptive modulation in software defined radio