Perceptron algorithm matlab