multinomial without replacement, inline code, uses less memory
removed debugging code. added unit tests
added doc