Udacity CUDA assignment