Towards a Theory of Evolution as Multilevel Learning