First pass at k-mean implementation.