They used James Madison's frozen seed to inseminate Greg's mother.
Not sure if you guys know this but every president has his "seed" frozen in a secret freezer in the white house. As a matter of fact Monica was just collecting Bill Clinton's sample when all of that happened in the 90's.