Kmeans clustering

i am getting empty list in function assignPointCluster while using dist.append(d)