Asymptotics for The $k$-means