Include <algorithm> header for GCC