modified trainSVM.m to get more reasonable result