first version of linear perceptron (lab 01)