kmeans and nnet

the source code for kmeans and nnet