Scientists are developing potatoes that could withstand heatwaves to help crops grow in a future affected by climate change.