SPARK-1380: Add sort-merge based cogroup/joins.

I've written cogroup/joins based on 'Sort-Merge' algorithm.