An implementation of the Back Propagation Neural Networks and weight decay version