Move <algorithm> header out of HeadSpin.h