john's code for visualizing rankings and ranking svm, experiment2.py contains pe/distortion