This could be written as a single for expression instead of two nested ones:

```scala
  for {
    point <- points
    (centers, runIndex) <- activeCenters.zipWithIndex
  } // ...
```