Peceptron and sigmoid function