Research shows a clear link between heat and decreased test scores. Here’s what teachers can do to mitigate that.