fixed error in definition of hypergeometric pmf
added rng with chi square test to multinomial
rstan: add rng for write_array
Merge branch 'master' of https://github.com/stan-dev/stan