fixed a few bugs in centroid_variance.R
Cleaning up for move around.
Merge branch 'master' of https://github.com/dyerlab/popgraph