Contents:
Computes the sum of all elements in a nested vector.
T – Type of elements in the vector.
nestedVec – Input nested vector.
double Sum of all elements.