Matrix-vector multiplication in CUDA C