Logistic regression in C++ using CUDA.