sped up k-means by 2 orders of magnitude, cos imma bauss