Discriminative Random Fields implementation for C#