Made some headway on the implementation of the kmeans specific implementation.