Moved Grid merge into MapReduce merge.

Now process_work contains clear Map and Reduce functionality, and
they can be timed separately.

Todo: extract map and init into MapReduce file.