Added k-means and maximum likelihood