ANSI C implementation of Perceptron (simplest neural network)