added LibSVM training

add ability to train data and write .model file on phone