Main mapreduce for calculating co-occurrence