Calculating Spearman similarity scores