rank_new function

Ranking with significance difference threshold