partitioner, shuffle and sort implementation for mapper