This is actually fairly slow. Can you just write it using a while loop with update in place instead?

```scala
private def vectorAddInPlace(v1: Array[Double], v2: Array[Double]) = {
  var i = 0
  while (i < v1.length) {
    v1(i) += v2(i)
  }
  v1
}