Correcting printing in matrix multiplication CUDA