Implementation of a simple feed-forward neural network