debugging, when copying array, pass c to cudaMemcpy, not &c