Square matrix by CUDA