Optimized MPI_Reduce function and added hardware broadcasts.