Wrote some k-means stuff, probably doesn't work just yet.