Calculating the sample standard deviation