A General Model To Explain Repeated Turnovers Of Sex Determination In