Science as a Social Self-organizing Extended Cognitive System. Coherence and Flexibility of Scientific Explanatory Patterns