How Does Gradient Descent Algorithm Working