Perceptron algorithm. Lecture 2.