The Information-theoretic and Algorithmic Approach to Human, Animal and Artificial Cognition