gradient descent for one variable added