Add missing includes <algorithm> and <vector>.