Understanding Standard Deviation Calculation in C