Gradient Descent Algorithm Inr Example