modify stocGradAscent in Logistic Regression