Implementation of logistic regression in Scala.