alternative version of arrayToCSV() eliminating needless arithmetic

simply has an incrementing array index instead of recalculating it every iteration.

Works fine in the current implementation, though will not work if support is later added for accessing a small square of the provided array