implement k-mean. accuracy 77%