Dealing with Ties in Rank Correlation