Added helper for calculating NDCG scores