Neural network implementation in C# with example training sets