Emergence of Self-Reproducing Metabolisms as Recursive Algorithms in an Artificial Chemistry