fixed wrong index, using linear kernel
fixed major bug in crossfold