added getTotalValues function

This populates a map with the total values for all factors.
Added column-wise max function.

Returns the column-wise maximum of this function and a scalar.
Merge branch 'master' into staticVector
merged new functionality from main branch