Updated prof_pairwise_distance

Some modifications in scikit-learn have been made, the profiling
code has been adapted.