Create rank_sort.c