[Added] Multiplicity Check Function

Function included to remove redundant production rules getting added
while new states are formed.