A C++ implementation of a feedforward neural network using CUDA/Opencl