First piece of code of the perceptron algorithm, with visual feedback