Fixed clone to add to dictionary. Iterator now iterates over arrays directly. Dictionary doesn't add duplicates