You don't need cols as argument of the function.
`dataset` must have the same number of columns (dimensions) as the dataset stored in `index`.
Therefore you can write
```cpp
index->addPoints(Matrix<ElementType>(dataset,rows,index->veclen()), rebuild_threshhold);
```
and remove the argument `int cols`