finish k-mean learning.