MLP in C++