Added isDuplicate function in DotChain.py to remove dup. chains