Optimization and Analysis of the pAp@k Metric for Recommender Systems