Cuda Kernell Naive Version and Title Version. Only for quadratic matrices