Fixes calculateNDCG