sigmoid-perceptron impl