Update kmeans.m

This file contains the code to do the kmeans in Matlab/Octave.  It does not work yet, because I need to figure out a way to add a variable length list to it.