Biodiversity could be explained by theory of oscillations