Map-reduce program to extract info from data