A new genetic study traces the movement of one of the world's most vital crops from Mexico to South America