Update variance.rb

Switch to sample rather than pobulation variance