merge cuda multinomial

i have created a cuda version of multinomial.