added multinomial cuda