Move mean/linspace from SGVector to CStatistics/CMath respectively

@iglesias Turned out that `SGVector::linspace_vec` was being used at one place, so I didn't remove it.
I'd definitely take advantage of these changes and use a better name for this variable, like  simply sum. This must be kind of a joke :-D