Reland "[Support] Don't include <algorithm> in MathExtras.h"

This reverts commit af2a93fd6e9f9e037d2e2d67b879fe85d7e1cbed.
This time, add the include to APInt.h, which apparently relied
on getting this include transitively.

GitOrigin-RevId: 0b36a33ab89488a631d5ee9580904a36898c7954
2 files changed