C# implementation of tree parity machine