Theoretical studies on the role and evolution of mating types and two sexes