Calculating the Standard Deviation in Ruby