Include <algorithm> instead of <array>