Add missing include

std::copy_n is defined in <algorithm>, which is not explicitly included
and therefore causes compilation errors with the recent GCC 14.1 and/or
CUDA 12.4.1.

Change-Id: I9fcab48770ccfc5ec195dca5a190ceaad9debe81
diff --git a/internal/ceres/cuda_streamed_buffer.h b/internal/ceres/cuda_streamed_buffer.h
index 8761ef4..37bcf4a 100644
--- a/internal/ceres/cuda_streamed_buffer.h
+++ b/internal/ceres/cuda_streamed_buffer.h
@@ -34,6 +34,9 @@
 #include "ceres/internal/config.h"
 
 #ifndef CERES_NO_CUDA
+
+#include <algorithm>
+
 #include "ceres/cuda_buffer.h"
 
 namespace ceres::internal {