Niche segregation between two medium