Mapping DNA by stochastic relaxation