spherical k-means script