Sufficient Conditions for Polymorphism with N Niches and M Mating Groups