Scala implementation of the PSO algorithm using actors.