Optimize the setData method
Optimize the setData method

Reassigning parameters while also mentioning `arguments` in the
function body might make JS engines go into an unoptimized mode.

https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments

koggdal/matrixmath