fixed factor product for factors with common variables [refs #172]
[fixes #172] fixes factor product for factor with no common variable
Merge pull request #181 from ankurankan/dev

Fixes Factor Product