add multinomial coefficient computation