Two mathematical models in rhizobium ecology