How did amerindian cultures use technologies and cultural practices to adapt to environmental challenges in mesoamerica and the andean region?