custom k-means working, but poorly performing.