added nDCG and AP to api