Implemented Logistic Regression for binary classification