C++ library for training neural networks