debug the kmean for error calculate the means in stepM