make sure there are at least 2 components

If there's only one component, we can't initialize the Dirichlet
distribution, because the parameter is a 1x1 matrix.
Merge pull request #296 from BayesianLogic/fix-example

make sure there are at least 2 components