Correlation: optimize Spearman ranked correlation algorithm #171