implemented the reduce function as well

added code to perform the hash join
-still need to do: testing the map-reduce codes