refurbished the impl. of dirichletDist
fixed the serious mistake in the posterior computation
optimized the performance of sample()
dirichlet.dim has been chenged to be a function