variational clustering

implemented variational clustering for unweighted samples