FactorProduct -- function calculating product of factors of CPD -- implemented.