Added kmeans stuff and some hmm stuff.