Added reduce for Vectors and Matrices if WITH_MPI is undefined