Thread: Added include of algorithm header to fix Linux build.