modified the rank_with_svm.m with some tests and cut out some outputting functions