Given the input author-book tuples, map-reduce program procudes a JSON object which contains all the books from same author in a JSON array