Ultrametricity in the theory of complex systems