added test case for factors appearing multiple times (e.g. 4 = 2*2)
Merge pull request #1 from ctrucza/master

added test case for factors appearing multiple times (e.g. 4 = 2*2)