Create Nearest rank.tex