Algorithm for K-Means and then classify on decision tree