add kmeans and xmeans tools