Code to partitioning the Map Outputs to reducers.Key Value class modified to support sorting