Matrix Square Root implementation in CUDA