general basic perceptron is implemented simply