An implementation of a neural network in C++