A C++ neural network simulator