Compute sigmoid function, the hypothesis function in Logistic Regression