Gradient Descent for  Logic regression