3 stage

Including k-means algortithm implemented in transition matrices