First working version of svmTrain

Don't now if this is already the solution...