implement perceptron learning