Threshold Model For Temperature Dependent Sex Determination