Perceptron in C#