computing mAP for subsets