correct calculation of std dev for centroids

affects #70