Perceptron algorithm almost done version