C++ Implementation of Artificial Neural Network