Pass the begin and end integers to the task map method

- Do not call MPI_Send on the rank 0 process
- Pass the integers from the first partition to the rank 0 process
- Pass the integers from the other partitions to the processes with the correct rank