Added cvKMeans2 & auxiliary functions

Added support for the kmeans clustering function