simplified the marginalize method bug #267
simplified the marginalize method bug #267

replaced for loop with np.sum
sandeepkrjha/pgmpy,kris-singh/pgmpy,kris-singh/pgmpy,pgmpy/pgmpy,pratyakshs/pgmpy,liquidmetal/pgmpy,abinashpanda/pgmpy,palashahuja/pgmpy,ankurankan/pgmpy,pgmpy/pgmpy,yashu-seth/pgmpy,ankurankan/pgmpy,palashahuja/pgmpy,anaviltripathi/pgmpy,liquidmetal/pgmpy,khalibartan/pgmpy,anaviltripathi/pgmpy,jhonatanoliveira/pgmpy,jhonatanoliveira/pgmpy,yashu-seth/pgmpy,abinashpanda/pgmpy,pratyakshs/pgmpy,vivek425ster/pgmpy,sandeepkrjha/pgmpy,vivek425ster/pgmpy,khalibartan/pgmpy