Simple single-hidden-layer perceptron implemented in C++.