Compressed sparse row matrix for node.js