created new package for the collapsed gibbs sampling implementation and put everything in it.