Implements Map side join logic (Big Data Assignment 2)