Quantum implementation of an artificial feed-forward neural network