Assignment 2 for Processing of Massive Datasets course.