rdt function

Rank difference test