trapezoidal rule using collective comminucation and point-to-point communication