Implementing Simple Neural Network in C#