ok kmeans works now, had some issues before with arbitrary dimensions