Working on R interface back end.
Finished kmeans algorithm.