The LambdaGap Framework for Precision-Oriented Ranking