logreg hypothesis function working with unit tests
Tests passing locally