fixed bug in ``dup_matching_generating_poly`` for case in which dictionary
keys do not start with 0

modified README indenting code