A simple c++ based multi layered perceptron