quit when nan is hit (a cluster is empty)
fixed initial centroids weren't being copied