How did migration caused people to adapt to new areas during the Mesolithic era