C++ Implementation of a Counterpropagation Network