Some algorithms executed in Scala.