A function to calculate the tie correction factor for H tests
tie = tiecorrect(ranks)
A vector of the computed rank values
The tie correction for the H test