C# port of java version of libsvm 3.0