This episode of Horizon looks at the recent scientific research into how humans become male or female.