update kmeans and gap statistic
Merge branch 'master' into rel-maxwell