The algorithmic origins of life