The Evolution of Complexity