Artificial Neural Network written in Scala