Achievability and Impossibility of Exact Pairwise Ranking