new algorithm of sgd