naive perceptron implemented