A Distance Function for Ranked Variables: A Proposal for a New Rank Correlation Coefficient