CNN in C++