SumEnergy: Allow more than two local energies
Store a vector of local energies and sum the energy over all entries.
A method to add single energies is implemented.
Store a vector of local energies and sum the energy over all entries.
A method to add single energies is implemented.