implemented and tested k-means.

it's a neat implementation, and it's snappy, but the result, as recorded
in the notes, is once again negative.