reduce examples (serial, MPI, cuda)