Structure and evolutionary origins of the CMG complex