Improved statistical methods for k-means clustering of noisy and directional data