Logistic Regression in Scala