Update code added partitioner and initial reducer