Ver. 3 << k-mean grouping

Ver. 3 << k-mean grouping
By now I've only done one iteration on k-mean-loop.