Dynamics of DNA in vitro evolution