The effect of spatial structure in adaptive evolution