more cleanly separated stddev calc from sum_sq_diff; made square more efficient
changed the for loop to a more efficient list comp
fixed merge conflict with calc_stddev.py