Fixed a couple major bugs

Was not updating distance_to_nearest mean when a nearer mean was found.

Was calculating the distance between the current mean and the new mean
AFTER setting the current mean equal to the new mean; this would
always return 0, and only one iteration of k-means would ever be run.