Adding translation of dirichlet sampling and helpful libraries. Also starting on tests.