fixing ksvm type issues
fixing some more type issues
Merge pull request #407 from alekh/ksvm

Ksvm