fixed reduce method according to the new representation of Factor [refs #137]
fixed reduce method according to the new representation of Factor [refs #137]

palashahuja/pgmpy,pratyakshs/pgmpy,khalibartan/pgmpy,sandeepkrjha/pgmpy,vivek425ster/pgmpy,abinashpanda/pgmpy,khalibartan/pgmpy,yashu-seth/pgmpy,anaviltripathi/pgmpy,anaviltripathi/pgmpy,jhonatanoliveira/pgmpy,abinashpanda/pgmpy,pratyakshs/pgmpy,ankurankan/pgmpy,liquidmetal/pgmpy,pgmpy/pgmpy,palashahuja/pgmpy,kislayabhi/pgmpy,yashu-seth/pgmpy,vivek425ster/pgmpy,liquidmetal/pgmpy,pgmpy/pgmpy,ankurankan/pgmpy,kris-singh/pgmpy,kris-singh/pgmpy,sandeepkrjha/pgmpy,jhonatanoliveira/pgmpy,kislayabhi/pgmpy