'meanByClass' and 'ds.var' updated. Two internal function added 'getPooledMean' and 'getPooledVar' to avoid calling the client functions 'ds.mean' and 'ds.var' internally with risk of the process stopping due to checks not required when computing pooled mean or variance internally.