added epsilon termination condition to k-means