doesn't seem like the 'error' number in kmeans2 is calculated right