Simple neural net in C++