Added size to the cudaMemcpy function calls.