Beginning of the cuda code. I have put together the skelton