Finished clustering O(n*m) alg, about 2 debug