結果 : write the learning algorithm for perceptron model