A Data.Vector based implementation of the kmeans clustering algorithm