Calculate variance and standard deviation (#99)