Approximately optimizing NDCG using pair-wise loss