LibSVM: Wrong index is written to output stream.
Merge pull request #59 from Ruun/libsvm

LibSVM: Wrong index is written to output stream.