Map reduce for co-occurrence