Add MeanStdDev function

This function is used to calculate both the mean and standard
deviation, which should save some calculation under most circumstances.